import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'home',
    redirect: '/input',
    component: () => import(/* webpackChunkName: "about" */ '@/views/MainLayout.vue'),
    children: [
      {
        path: '/input',
        name: 'input',
        component: () => import(/* webpackChunkName: "about" */ '@/views/AnalyzingPage.vue')
      },
      {
        path: '/result',
        name: 'result',
        component: () => import(/* webpackChunkName: "about" */ '@/views/ResultPage.vue')
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
